<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); function xinrui_qq_tpl_login_bar() {
global $_G;?><?php
$return = <<<EOF

<a href="{$_G['siteurl']}plugin.php?id=xinrui_qq&mod=setting&op=qqlogin"><img src="source/plugin/xinrui_qq/template/image/qq_login.gif" class="vm" /></a>

EOF;
?><?php return $return;?><?php }

function xinrui_qq_tpl_login_extra_bar($text) {
global $_G;?><?php
$return = <<<EOF



EOF;
 if($text) { 
$return .= <<<EOF

<a href="{$_G['siteurl']}plugin.php?id=xinrui_qq&mod=setting&op=qqlogin"><img src="source/plugin/xinrui_qq/template/image/qq_login.gif" class="vm" /></a>

EOF;
 } else { 
$return .= <<<EOF

    <style type="text/css">
.qq_wx_icon .qqIcon img{display:none;}
.qq_wx_icon .fastlg_fm .qqIcon{display:inline-block;width:16px;width:50px;}
.qq_wx_icon .fastlg_fm{display:inline-block;width:16px;width:80px;background:url(source/plugin/xinrui_qq/template/image/xinrui_qq.png) 20px 1px no-repeat;}
.qq_wx_icon .fastlg_fm:hover{display:inline-block;width:16px;width:80px;background:url(source/plugin/xinrui_qq/template/image/xinrui_qq.png) 20px -35px no-repeat;}
</style>
<div class="fastlg_fm y" style="margin-right: 10px; padding-right: 10px">
<p><a class="qqIcon" href="{$_G['siteurl']}plugin.php?id=xinrui_qq&mod=setting&op=qqlogin"><img src="source/plugin/xinrui_qq/template/image/qq_login.gif" class="vm" /></a></p>
<p class="hm xg1" style="padding-top: 2px;">只需一步，快速开始</p>
</div>

EOF;
 } 
$return .= <<<EOF

  
EOF;
?>  <?php return $return;?><?php }




function xinrui_qq_tpl_setting() {
global $_G;?><?php
$return = <<<EOF

<style type="text/css">
#xinrui_qq_menu li{clear:both}
#xinrui_qq_menu li a{ line-height: 18px; padding: 3px 5px;}
#toptb .qq_login .showmenu{padding-right: 15px;}
</style>
<span class="pipe">|</span>
    
EOF;
 if(empty($_G['xr_qq']['uid'])) { 
$return .= <<<EOF

<a id="xinrui_qq" href="{$_G['siteurl']}plugin.php?id=xinrui_qq&mod=setting&op=qqlogin&cp=bind" class="showmenu">绑定QQ</a>

EOF;
 } else { 
$return .= <<<EOF

<a id="xinrui_qq" href="javascript:;" class="showmenu" onmouseover="showMenu({'ctrlid': 'xinrui_qq'})">QQ设置</a>

EOF;
 } 
$return .= <<<EOF



EOF;
?><?php return $return;?><?php }


function xinrui_qq_tpl_setting_menu() {
global $_G;?><?php
$return = <<<EOF

<style type="text/css">
    #xinrui_qq_menu li{clear:both}
    #xinrui_qq_menu li a{ line-height: 18px; padding: 3px 5px;}
</style>
<span class="pipe">|</span>

<ul id="xinrui_qq_menu" class="p_pop" style="display: none;">

EOF;
 if(!empty($_G['xr_qq']['uid']) && $_G['xr_qq']['uid'] == $_G['xr_qq']['bind']) { 
$return .= <<<EOF

    <li><a href="javascript:;" onclick="showWindow('bind', 'plugin.php?id=xinrui_qq&mod=setting&op=bind')">绑定老用户</a></li>
    
EOF;
 } else { 
$return .= <<<EOF

    <li><a href="javascript:;" onclick="showWindow('unbind', 'plugin.php?id=xinrui_qq&mod=setting&op=unbind')">解除QQ绑定</a></li>
    
EOF;
 } 
$return .= <<<EOF

    
    
EOF;
 if(!$_G['xr_qq']['isuser']) { 
$return .= <<<EOF

    <li><a href="javascript:;" onclick="showWindow('qq_upt_user', 'plugin.php?id=xinrui_qq&mod=setting&op=username')">修改用户名</a></li>
    
EOF;
 } 
$return .= <<<EOF

    
EOF;
 if(!$_G['xr_qq']['ispwd']) { 
$return .= <<<EOF

    <li><a href="javascript:;" onclick="showWindow('qq_upt_pwd', 'plugin.php?id=xinrui_qq&mod=setting&op=password')">修改密码</a></li>
    
EOF;
 } 
$return .= <<<EOF

</ul>


EOF;
?><?php return $return;?><?php }?>